Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing Extensions and Drivers /
Chapter 4 - Printing Messages / Printing Messages Reference
Constants and Data Types for the PostScript Imaging System


PostScript Glyphs Structure

QuickDraw GX constructs the PostScript glyphs structure, of data type gxPrinterGlyphsRec, so a driver can communicate with the imaging system about the fonts and glyphs that are available on a printer. This structure is used by the GXPostScriptGetPrinterGlyphsInformation message, which is described on page 4-116.

struct gxPrinterGlyphsRec {
   gxFont            theFont;
   long              nGlyphs;
   gxFontPlatform    platform;
   gxFontScript      script;
   gxFontLanguage    language;
   long              vmUsage;
   unsigned long     glyphBits[1];
};
typedef struct gxPrinterGlyphsRec gxPrinterGlyphsRec;
Field Description
theFont
The font that this information is for.
nGlyphs
The number of glyphs that the font contains.
platform
The platform of the font.
script
The script code of the font. This value has no meaning if the value of the platform field is -1.
language
The language code of the font. This value has no meaning if the value of the platform field is -1.
vmUsage
The amount of printer memory required for the font.
glyphBits
A variable-sized array containing the data for the glyphs. This array must be aligned on a long word boundary. Its size in long words can be computed by the formula: (nGlyphs + 31) / 32.
You can read about font glyphs, platforms, scripts, and languages in Inside Macintosh: QuickDraw GX Typography.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help